﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Shared.Models.Trade
{
    /// <summary>
    /// 价差
    /// </summary>
    public class PriceDiff
    {
        public PriceDiff(PriceDiff p)
        {
            Id = p.Id;
            TsCode1 = p.TsCode1;
            TsCode2 = p.TsCode2;
            TDXCode = p.TDXCode;
            TsName = p.TsName;
            NoForward = p.NoForward;
            PriceDiffName = p.PriceDiffName;
            SyncFinished = p.SyncFinished;
            TDXCode = p.TDXCode;
            TsName = p.TsName;
            Maturity = p.Maturity;
            Interval = p.Interval;
            HengShengMarketID = p.HengShengMarketID;
            HengShengMarketName = p.HengShengMarketName;
            PoolID = p.PoolID;
        }
        public PriceDiff()
        {

        }
        public int Id { get; set; }
        public string TsCode1 { get; set; } = "";
        public string TsCode2 { get; set; } = "";
        public string TDXCode { get; set; } = "";
        public string TsName { get; set; } = "";
        public bool isSyncing { get; set; }
        public bool NoForward { get; set; }
        public string PriceDiffName { get; set; }
        public bool SyncFinished { get; set; } = false;
        public string Maturity { get; set; }
        public string HengShengMarketID { get; set; }
        public string HengShengMarketName { get; set; }
        public List<string> TsCodes { get; set; } = new List<string>();
        public int Interval { get; set; }
        public int PoolID { get; set; }
    }
}
